/**
 * 企信
 */

import utils from '@/utils/common'
import request from '@/utils/request'

import { Request } from '@/utils/request.enhance'

import store from '../store'
import config from '../config'

const userInfo = () => store.state.qixin.userInfo

export default {
  saveUserInfo (data) { // 保存用户信息
    return Request.post('/game/user/info', {
      nickName: data.nickName,
      icon: data.avatar,
      department: data.department,
      openId: data.qxUserId,
      thirdUserId: data.qxUserId
    })
  }
}
